Page({
  data: {
    PageCur: 'home',
  },
  NavChange(e) {
    console.log(e)
    let id=e.currentTarget.dataset.id
    if(id=="add"){
      wx.navigateTo({
        url: e.currentTarget.dataset.cur
      })
    }
    else{
      this.setData({
        PageCur:id
      })
    }
  },
  onShareAppMessage() {
    return {
      title: '储物阁',
      imageUrl: '/images/share.jpg',
      path: '/pages/index/index'
    }
  },
})